//
//  FQQHeader.h
//  HouseClient
//
//  Created by 翁胜琼 on 2018/10/16.
//  Copyright © 2018 浙江房洽洽网络科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <ReactiveObjC/ReactiveObjC.h>

NS_ASSUME_NONNULL_BEGIN
typedef CALayer*(^lineConfigurationBlock)(void);
@interface WSQTabSelectionView : UIView

@property (nonatomic,copy) NSArray<NSString *>  *titles;
@property (strong,nonatomic) UIColor *lineColor;
@property (nonatomic,assign) NSInteger lineWidth;
@property (nonatomic,assign) NSInteger lineHeight;
@property (nonatomic,assign) NSInteger selectedIndex;
@property (nonatomic,copy) lineConfigurationBlock lineConfigurationBlock; // 配置 linelayer 可以自定义类型

// 点击 tab 的回调
@property (strong,nonatomic) RACSubject *tabClickedSub;

// 设置 cell 文字颜色，默认是否选中都是黑色
- (void)setTitleColor:(nullable UIColor *)color forState:(UIControlState)state;
// 设置 cell 文字字体
- (void)setTitleFont:(nullable UIFont *)font forState:(UIControlState)state;

@end

NS_ASSUME_NONNULL_END
